package com.example.service.impl;

import com.example.annotation.Resource;
import com.example.annotation.Service;
import com.example.service.UserService;

//将该类注入到spring容器里面
@Service
public class UserServiceImpl implements UserService {
	// 从Spring容器中读取bean
    @Resource
	private OrderServiceImpl orderServiceImpl;

	public void syso() {
		System.out.println(orderServiceImpl);
	}
}
